package com.mlk.engSystem.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mlk.car.vo.EngCarVO;
import com.mlk.engSystem.po.EngSysEmp;
import com.mlk.engSystem.vo.EngSysEmpVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author trekxu
 * @since 2019-06-18
 */
@Mapper
public interface EngSysEmpMapper extends BaseMapper<EngSysEmp> {

    List<EngSysEmpVO> selectAll();

    /**
     * 更新deposit的值
     * @param depositId
     * @param id
     * @return
     */
    int allocateDeposit(@Param("depositId") Integer depositId,@Param("id") Integer id);

    int updateRemain(@Param("openId") String openId, @Param("totalPrice") BigDecimal negate);

    List<EngSysEmpVO> listReportPage(EngSysEmpVO engSysEmpVO);

    List<EngCarVO> getAllCanUseCar(Integer id);

    int unbindCar(Integer id);
}
